//
//  InformationTableViewCell.m
//  HappinessTrip
//
//  Created by dllo on 15/10/15.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "InformationTableViewCell.h"
#import "Fit.h"

@implementation InformationTableViewCell

-(void)dealloc
{
    [_infoLabel release];
    [_aLabel release];
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createViews];
    }
    return self;
}
-(void)createViews
{
    _aLabel = [[UILabel alloc]init];
    [self.contentView addSubview:_aLabel];
    [_aLabel release];
    
    _infoLabel = [[UILabel alloc]init];
    [self.contentView addSubview:_infoLabel];
    [_infoLabel release];
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    _aLabel.frame = CGRectMake(20 * W, 10 * H, self.contentView.frame.size.width - 40 * W, 20 * H);
    _infoLabel.frame = CGRectMake(_aLabel.frame.origin.x, _aLabel.frame.origin.y + _aLabel.frame.size.height + 10 * H, _aLabel.frame.size.width, self.contentView.frame.size.height - _aLabel.frame.size.height - 20 * H);
    _infoLabel.numberOfLines = 0;
    _infoLabel.font = [UIFont systemFontOfSize:15];
    _infoLabel.textColor = [UIColor grayColor];
}

















- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
